-- addon_bonus_rate
-- created by chendh
-- 天空战附加属性：天空战属性额外奖励
-- ([plunder:500])代表掠夺玩家时额外获得50%奖励

return {
    -- 空属性
    getEmptyProp = function()
        return {};
    end,

    -- 合并属性
    mergeSkyProp = function(data, addon)
        local result = {};

        if not data then
            result = table.copy(addon);
        else
            result = table.copy(data);

            for style, value in pairs(addon) do
                result[style] = value + (result[style] or 0);
            end
        end

        return result;
    end,
};